<?php

use yii\db\Migration;

/**
 * Class m221110_083244_retype_number_column_in_contract_table
 */
class m221110_083244_retype_number_column_in_contract_table extends Migration
{
    /**
     * {@inheritdoc}
     */
    public function safeUp()
    {
        $this->alterColumn('{{%contract}}', 'own_number', $this->string(255));
        $this->alterColumn('{{%contract}}', 'contractor_number', $this->string(255));
    }

    /**
     * {@inheritdoc}
     */
    public function safeDown()
    {
        $this->alterColumn('{{%contract}}', 'own_number', $this->integer());
        $this->alterColumn('{{%contract}}', 'contractor_number', $this->integer());
    }

}
